package com.huike.clues.service.impl;


import com.huike.clues.domain.vo.ClueTrackRecordVo;
import com.huike.clues.domain.vo.recordListVO;
import com.huike.clues.mapper.TbClueTrackRecordMapper;
import com.huike.clues.service.ITbClueTrackRecordService;
import com.huike.common.core.page.TableDataInfo;
import com.huike.common.utils.SecurityUtils;
import com.huike.common.utils.bean.BeanUtils;
import lombok.AllArgsConstructor;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 线索跟进记录Service业务层处理
 * @date 2022-04-22
 */
@Service
@AllArgsConstructor
public class TbClueTrackRecordServiceImpl implements ITbClueTrackRecordService {
private final TbClueTrackRecordMapper tbClueTrackRecordMapper;
    @Override
    public void add(ClueTrackRecordVo tbClueTrackRecord) {
        tbClueTrackRecord.setName(SecurityUtils.getUsername());
        tbClueTrackRecord.setType("0");
        tbClueTrackRecordMapper.add(tbClueTrackRecord);
    }

    @Override
    public List<recordListVO> list(int clueId) {
        return tbClueTrackRecordMapper.selectList(clueId);
    }

}
